<include file="Public:head" title='客服详情' />
<script src="__PUBLIC__/js/Jquery/validate.js"></script>
<script type="text/javascript">
    $(function() {
        $("#form").validate({
            errorPlacement: function(error, element) {
                var error_td = element.parent('td');
                error_td.find('label.error').hide();
                error_td.append(error);
            },
            rules: {
                name: {
                    required: true
                }

            },
            messages: {
                name: {
                    required: '名称不能为空'
                }

            }
        });
    });
</script>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
        <include file="Public:left" />
        <div class="main-content">
            <div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li><i class="icon-home home-icon"></i><a href="__APP__/{$Think.MODULE_NAME}">首页</a></li>
                    <li><a href="{:U('Service/lists')}">客服管理</a></li>
                    <li class="active">模板管理</li>
                </ul>
            </div>
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="row">
                            <div class="col-xs-12">
                                <h3 class="header smaller lighter blue">模板管理</h3>

                                <form action="{:U('Service/modal_post')}" method="POST" id="form">
                                    <table class="table table_detail">
                                        <tbody>
                                            <tr>
                                        <td style="width:15%;text-align:center">开启状态</td>
                                        <td width="80%" align="left" style="text-align:left">
                                            <label><input   name="is_start_service" type="radio"   value="0" <if condition="$config.is_start_service eq 0">checked</if>/> 关闭</label>
                                            <label><input name="is_start_service"  type="radio" value="1" <if condition="$config.is_start_service gt 0">checked</if> />开启</label>

                                        </td>
                                    </tr>
                                    <tr>
                                         <td style="text-align: center">
                                            <img width="194" height="334" src="__PUBLIC__/admin/images/1.png"/>
                                        </td>
                                    </tr>
                                    <tr>

                                        <td style="text-align: center">
                                            <label>
                                                <input type="radio"  value="1" class="radio" <if condition="$config.is_start_service eq 1">checked</if>/>客服模板一
                                            </label>
                                        </td>
                                    </tr>
                                            <tr>
                                                <td class="td_left"></td>
                                                <td>
                                                    <input type='hidden' name='id' value='{$Think.get.id}'/>
                                                    <button class="btn btn-info btn-sm" type="submit">
                                                        <i class="icon-ok bigger-110 "></i>
                                                        保 存
                                                    </button>
                                                    <button class="btn btn-sm reset" type="button" onclick="goUrl(-1)">
                                                        <i class="icon-undo bigger-110"></i>
                                                        返 回
                                                    </button>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <include file="Public:setting" />
    </div>
</div>
<include file="Public:foot" />